const state = {
  // 新闻内容
  newsMap: {}
};

const mutations = {
  SET_NEWS_MAP: (state, newsMap) => {
    state.newsMap = newsMap;
  }
};

const actions = {
  setNewsMap({ commit }, { payload }) {
    commit('SET_NEWS_MAP', payload);
  }
};

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
